package io.kiki.sba.registry.client.api;

import io.kiki.sba.registry.client.api.model.Event;


public interface EventBus {


    boolean isEnable();


    boolean isEnable(Class<? extends Event> eventClass);


    void register(Class<? extends Event> eventClass, EventSubscriber eventSubscriber);


    void unRegister(Class<? extends Event> eventClass, EventSubscriber eventSubscriber);


    void post(final Event event);
}
